package com.epam.mainmenu;

import com.epam.menu.MenuItem;
import com.epam.stone.PreciousStone;

public class PriseNecklace extends MenuItem {

	public PriseNecklace() {
		super("Prise of beads","4");
	}

	@Override
	public boolean execute() {
		System.out.println("Prise comand");
		double prise=0;
		for (PreciousStone beads:necklace){
			prise+=beads.getPrise();
		}
		System.out.println("Weight of your necklace- "+prise+" $");
		return true;
	}

}
